<?php

require_once "core/application/models/musers/musers7.php";

class Musers8 extends Musers7 {
    

    private $_query;

    protected function addToFriend($playerId, $friendId) {
        /**
         * @param int $playerId
         * @param int $friendId
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "INSERT INTO `friends` (`player`, `friend`) VALUES ('$playerId', '$friendId')";
        return DB::getInstance()->sql($this->_query);
        unset($this->_query); 
    }
}
?>
